/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
/**
 * Autogenerated by Thrift Compiler (0.11.0)
 *
 * <p>DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *
 * @generated
 */
package org.apache.pegasus.apps;

public enum cas_check_type implements org.apache.thrift.TEnum {
  CT_NO_CHECK(0),
  CT_VALUE_NOT_EXIST(1),
  CT_VALUE_NOT_EXIST_OR_EMPTY(2),
  CT_VALUE_EXIST(3),
  CT_VALUE_NOT_EMPTY(4),
  CT_VALUE_MATCH_ANYWHERE(5),
  CT_VALUE_MATCH_PREFIX(6),
  CT_VALUE_MATCH_POSTFIX(7),
  CT_VALUE_BYTES_LESS(8),
  CT_VALUE_BYTES_LESS_OR_EQUAL(9),
  CT_VALUE_BYTES_EQUAL(10),
  CT_VALUE_BYTES_GREATER_OR_EQUAL(11),
  CT_VALUE_BYTES_GREATER(12),
  CT_VALUE_INT_LESS(13),
  CT_VALUE_INT_LESS_OR_EQUAL(14),
  CT_VALUE_INT_EQUAL(15),
  CT_VALUE_INT_GREATER_OR_EQUAL(16),
  CT_VALUE_INT_GREATER(17);

  private final int value;

  private cas_check_type(int value) {
    this.value = value;
  }

  /** Get the integer value of this enum value, as defined in the Thrift IDL. */
  public int getValue() {
    return value;
  }

  /**
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
   *
   * @return null if the value is not found.
   */
  public static cas_check_type findByValue(int value) {
    switch (value) {
      case 0:
        return CT_NO_CHECK;
      case 1:
        return CT_VALUE_NOT_EXIST;
      case 2:
        return CT_VALUE_NOT_EXIST_OR_EMPTY;
      case 3:
        return CT_VALUE_EXIST;
      case 4:
        return CT_VALUE_NOT_EMPTY;
      case 5:
        return CT_VALUE_MATCH_ANYWHERE;
      case 6:
        return CT_VALUE_MATCH_PREFIX;
      case 7:
        return CT_VALUE_MATCH_POSTFIX;
      case 8:
        return CT_VALUE_BYTES_LESS;
      case 9:
        return CT_VALUE_BYTES_LESS_OR_EQUAL;
      case 10:
        return CT_VALUE_BYTES_EQUAL;
      case 11:
        return CT_VALUE_BYTES_GREATER_OR_EQUAL;
      case 12:
        return CT_VALUE_BYTES_GREATER;
      case 13:
        return CT_VALUE_INT_LESS;
      case 14:
        return CT_VALUE_INT_LESS_OR_EQUAL;
      case 15:
        return CT_VALUE_INT_EQUAL;
      case 16:
        return CT_VALUE_INT_GREATER_OR_EQUAL;
      case 17:
        return CT_VALUE_INT_GREATER;
      default:
        return null;
    }
  }
}
